<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" href="css/modal.css"/>
	</head>
	<style>
		   
	</style>
	<body>
		<div id='app'>
			<button>打开弹窗</button>
			{{visiable}}
			<my-modal @update="val=>visiable=val" :value='visiable'></my-modal>
		</div>
		<script src="js/modal.js"></script>
		<script>
			Vue.createApp({
				components:{
					'my-modal':Modal
				},
				data(){
					return{
						visiable:false
					}
				},
				methods:{
					
				}
			}).mount('#app')
		</script>
	</body>
</html>

				